package com.thomasmoerman.dci.tmc

abstract class Account(val id: Long) extends Identified {
  
  def deposit(amount: Double)
  
  def withdraw(amount: Double)
  
  def updateLog(msg: String, amount: Double) = println("Account " + id + " " + msg + " " + amount)
  
}

trait HasBalance {
    
  def balance: Double
  
}